<html>
<body>
	<h1></h1>

	<form action="generate/tickets" method="POST">
<p>Ticket Id(example: CHGF-1234):</p><input type="text" id="ticketId" />
<input type="submit" id="button" onclick="return IsEmptyTicket()" value="Generate report"/>
</form>

<form action="generate/tickets" method="POST">
<p>Developer Id(example: 123456):</p><input type="text" id="developerId" />
<input type="submit" id="button" onclick="return IsEmptyDeveloper()" value="Generate report"/>
</form>


<script type="text/javascript">
function IsEmptyTicket(){
	if(document.getElementById("ticketId").value == ""){		
	    return false;
	  }
	    return true;
	}

function IsEmptyDeveloper(){
	if(document.getElementById("developerId").value == "" ){		
	    return false;
	  }
	    return true;
	}
</script>

</body>
</html>